/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
}

body {
    background-color: #f5f5f7;
    color: #1d1d1f;
    min-height: 100vh;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* 头部样式 */
.app-header {
    padding: 16px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.header-actions button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255,255,255,0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 主内容区样式 */
.app-main {
    padding: 16px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background-color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note-card {
    padding: 16px;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s;
}

.note-card:hover {
    transform: translateY(-2px);
}

.note-card.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8e8e93;
}

/* 编辑器样式 */
.note-editor {
    display: none;
    padding: 16px;
}

.note-type-selector {
    margin-bottom: 20px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.note-type-selector h3 {
    margin-bottom: 16px;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.type-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.type-btn {
    padding: 12px 8px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.type-btn:hover {
    background-color: #e3f2fd;
    border-color: #bbdefb;
}

.type-btn.active {
    background-color: #2196f3;
    color: white;
    border-color: #2196f3;
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.editor-toolbar button {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background-color: #2c3e50;
    color: white;
    cursor: pointer;
}

.note-title {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    outline: none;
}

.note-content {
    width: 100%;
    min-height: 300px;
    padding: 0;
    border: none;
    font-size: 16px;
    line-height: 1.6;
    resize: none;
    outline: none;
}